/* 
 * File:   Surface.h
 * Author: agu
 *
 * Created on May 18, 2014, 1:54 AM
 */

#ifndef SURFACE_H
#define	SURFACE_H
#include <SDL2/SDL.h>
#include <SDL2/SDL_image.h>
#include <string>
using std::string;
class Surface {
public:
    Surface();
    Surface(const string path);
    Surface(SDL_Surface* sdlSurface);
    Surface(const Surface& orig);
    virtual ~Surface();
    SDL_Surface* getSurfaceSDL();
    void load(SDL_Surface* sdlSurface);
    int getWidth();
    int getheight();
    void escale(int width,int height);
    int getX();
    int getY();
    void setPosition(int x, int y);
protected:
    SDL_Surface* surface;
};

#endif	/* SURFACE_H */

